;Profesor helped on mappeer-gen function
(ns adder.reorder)

(defstruct manga :name :image :rank)

(defn mapper-gen2
  [names images ranks] (sort-by :rank (map #(hash-map :name %1 :image %2 :rank %3 ) names images ranks)))

(defn mapper-gen3
  [names images ranks read-link] (sort-by :rank (map #(hash-map :name %1 :image %2 :rank %3 :read-link %4)
                                                                   names images ranks read-link )))

     
(defn mapper-gen4
  [names images ranks read-link download-link] (sort-by :rank (map #(hash-map :name %1 :image %2 :rank %3 :read-link %4 :download-link %5) names images ranks read-link download-link)))

